const Path = require('path')
const express = require('express');
const app = express();
const dir = Path.join(__dirname, '../lessons')
app.use(express.static(dir, {
    setHeaders: function (res, path, stat) {
        res.header("Access-Control-Allow-Origin", "*");
    }
}));
const port = 3434;

app.listen(port, () => {
    let url = `http://localhost:${port}`;
    console.log(`run: ${url}`);
});
